package com.joey.protocol;

import com.joey.base.util.LogUtils;

import okhttp3.logging.HttpLoggingInterceptor;

/**
 * Created by Joey on 2018/12/5.
 *
 * @author by Joey
 */

public class HttpLogger implements HttpLoggingInterceptor.Logger {

    @Override
    public void log(String message) {
        if (NetClientConfig.I().isLogged()) {
            LogUtils.i(message);
        }
    }
}
